﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Generic.Contract;
using Generic.Data.Manager;

namespace Generic.Business.Manager
{
    public abstract class BusinessManager<BE, FE, DM> : IBusinessManager<BE, FE>
        where BE : BusinessEntity
        where FE : FilterEntity
        where DM : IDataManager<BE, FE>, new()
    {
        private DM _DataManager;

        virtual protected DM DataManager
        {
            get { return this._DataManager; }
            set { this._DataManager = value; }
        }

        public BusinessManager()
        {
            _DataManager = new DM();
        }
    }
}
